package com.cqupt.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Loginlogs {
//    登录 id
    private int logid;
//    登录时间
    private Date logintime;
//    登录级别
    private String level;
//    登录类型
    private String type;
//    用户名
    private String username;
//    用户ip
    private String ip;
//    结果
    private String result;
//    描述
    private String description;

    /**
     * loginlogs构造函数
     */
    public Loginlogs() {
    }

    /**
     * Loginlogs构造函数
     * @param logintime
     * @param level
     * @param type
     * @param username
     * @param ip
     * @param result
     * @param description
     */
    public Loginlogs(Date logintime, String level, String type, String username, String ip, String result, String description) {
        this.logintime = logintime;
        this.level = level;
        this.type = type;
        this.username = username;
        this.ip = ip;
        this.result = result;
        this.description = description;
    }

    /**
     * loginlogs
     * @param logid
     * @param logintime
     * @param level
     * @param type
     * @param username
     * @param ip
     * @param result
     * @param description
     */
    public Loginlogs(int logid, Date logintime, String level, String type, String username, String ip, String result, String description) {
        this.logid = logid;
        this.logintime = logintime;
        this.level = level;
        this.type = type;
        this.username = username;
        this.ip = ip;
        this.result = result;
        this.description = description;
    }

    /**
     * 获取logid
     * @return
     */
    public int getLogid() {
        return logid;
    }

    /**
     * 设置 logid
     * @param logid
     */
    public void setLogid(int logid) {
        this.logid = logid;
    }

    /**
     * 获取 login时间
     * @return
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getLogintime() {
        return logintime;
    }

    /**
     * 设置Login时间
     * @param logintime
     */
    public void setLogintime(Date logintime) {
        this.logintime = logintime;
    }

    /**
     * 获取登录级别
     * @return
     */
    public String getLevel() {
        return level;
    }

    /**
     * 设置登录级别
     * @param level
     */
    public void setLevel(String level) {
        this.level = level;
    }

    /**
     * 获取登录类型
     * @return
     */
    public String getType() {
        return type;
    }

    /**
     * 设置登录类型
     * @param type
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * 获取用户名
     * @return
     */
    public String getUsername() {
        return username;
    }

    /**
     * 设置用户名
     * @param username
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 获取ip
     * @return
     */
    public String getIp() {
        return ip;
    }

    /**
     * 设置ip
     * @param ip
     */
    public void setIp(String ip) {
        this.ip = ip;
    }

    /**
     * 获取 result
     * @return
     */
    public String getResult() {
        return result;
    }

    /**
     * 设置result
     * @param result
     */
    public void setResult(String result) {
        this.result = result;
    }

    /**
     * 获取描述
     * @return
     */
    public String getDescription() {
        return description;
    }

    /**
     * 设置描述
     * @param description
     */
    public void setDescription(String description) {
        this.description = description;
    }
}
